package com.mall.fegin;

import com.mall.entity.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author wwz
 * @date 2023/6/8
 */
@FeignClient(value = "mall-provider",path = "product")
public interface ProductFeign {

    @GetMapping("/hot.do")
    List<Product> getHotProduct();

}
